package com.bw.service;

import com.bw.pojo.Role;
import com.bw.pojo.User;
import com.bw.pojo.vo.GetUserDetailsVo;
import com.bw.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {

    int login(User user, HttpServletRequest req, HttpServletResponse resp);

    List<User> getUserList(User user);


    Integer addUser(User user);

    void delUser(String uids);

    User finById(Integer uid);

    void updUser(User user);
    /**
     * 批量删除
     */
    void delUserAll(String ids);

    /**
     * 批量添加
     */
    void userAddAll(List<User> list);
    UserVo getUserByUserId(Integer uid);

    List<UserVo> getUserListByMap(UserVo userVo);
    void getRoleListUser(Integer uid);
}
